home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d1 / fat105.arc / FAT.DOC next >
Text File  |  1988-07-07  |  8KB  |  206 lines

  1.  
  2.                                    FAT 1.05
  3.                                    ---------
  4.  
  5.         FAT is a simple program that can be used to display the chain of
  6.         clusters (disk allocation units) that belong to a disk file, to
  7.         determine which file "owns" a specified cluster or sector,
  8.         and to display general information about a disk.
  9.  
  10.         FAT is a passive program, that is, it does not perform any
  11.         functions that alter disk data.  It is an inquiry program only.
  12.  
  13.         NOTE: like CHKDSK, FAT may change the default drive and/or
  14.         directory while it is working.  If the program is interrupted,
  15.         no harm will be done, but you may find that your drive/directory
  16.         has been changed.
  17.  
  18.  
  19.         Syntax summary
  20.         --------------
  21.  
  22.             fat filespec [/D] [/H] [/I]     (display chain)
  23.             fat [d:] /Cn [/D] [/H] [/I]     (owner of cluster n)
  24.             fat [d:] /Sn [/D] [/H] [/I]     (owner of sector n)
  25.             fat [d:] /I                     (disk info only)
  26.  
  27.         Switches:
  28.  
  29.             /C  Cluster owner
  30.             /D  Decimal output
  31.             /H  Hex output
  32.             /I  info
  33.             /S  Sector owner
  34.  
  35.         The commands are detailed below.
  36.  
  37.  
  38.         Displaying the cluster chain for a file or directory
  39.         ----------------------------------------------------
  40.  
  41.         The syntax for this function is:
  42.  
  43.                 fat [d:]path
  44.                 fat [d:][path]file
  45.  
  46.         If only a path (and optional drive) is present, the chain of
  47.         clusters belonging to the subdirectory file itself is displayed.
  48.         If a filename is present, the chain of clusters belonging to the
  49.         named file is displayed.  The filename may contain wildcards, in
  50.         which case the chain for all matching files will be displayed.
  51.  
  52.         Examples:
  53.  
  54.             fat c:\dir              ; Display chain for c:\dir itself,
  55.                                     ; i.e., which clusters does the
  56.                                     ; subdirectory file occupy.
  57.  
  58.             fat c:\dir\file1.txt    ; Display chain for file1.txt
  59.  
  60.             fat c:\dir\*.*          ; Display chain for all files
  61.                                     ; in c:\dir
  62.  
  63.         FAT interprets missing portions of the filename to be equivalent
  64.         to "*".  Thus:
  65.  
  66.             fat *       == fat *.*
  67.             fat foo     == fat foo.*
  68.             fat foo*    == fat foo*.*
  69.  
  70.         If you wish to display the chain for file "foo", but not
  71.         "foo.txt", use an explicit ".", as in:
  72.  
  73.             fat foo.
  74.  
  75.  
  76.         Finding the owner of a cluster or sector
  77.         ----------------------------------------
  78.  
  79.         The syntax for this function is:
  80.  
  81.             fat [d:] /Cn            ; Find owner of cluster N
  82.             fat [d:] /Sn            ; Find owner of sector N
  83.  
  84.         For example:
  85.  
  86.             fat /C160               ; Find owner of cluster 160
  87.  
  88.             fat b: /C112H           ; Find owner of cluster 112H
  89.                                     ; on drive B.
  90.  
  91.             fat /S14D               ; Find owner of sector 014DH
  92.  
  93.         See below for more information on how the input numbers are
  94.         interpreted (as decimal or hex).
  95.  
  96.  
  97.         Disk information
  98.         ----------------
  99.  
  100.         You can append /I (Info) to any FAT command to display general
  101.         information about the selected disk.  You can also run FAT with
  102.         only a /I parameter (and optional drive) to just display the
  103.         information.
  104.  
  105.         Examples:
  106.  
  107.             fat /I                  ; Info about default drive
  108.             fat B: /I               ; Info about drive B
  109.             fat c:\foo/i            ; Chain for foo, plus info
  110.             fat /i /c166            ; Owner of cluster 166H, plus info
  111.  
  112.  
  113.         Input radix
  114.         -----------
  115.  
  116.         Cluster and sector numbers for the /C and /S parameters are
  117.         assumed to be decimal, unless the numbers contain a hex digit
  118.         (A-F) or are suffixed with an 'H':
  119.  
  120.             /c119       ; decimal
  121.             /s11A       ; hex
  122.             /c116H      ; hex
  123.  
  124.  
  125.         Output radix
  126.         ------------
  127.  
  128.         The output radix defaults to the input radix; that is, if your
  129.         sector or cluster is input in decimal, the output will be
  130.         displayed in decimal.  Where there is no numeric input (for
  131.         example, "fat c:*.*"), decimal is assumed.
  132.  
  133.         You can specify an explicit output radix by using the /H (hex)
  134.         or /D (decimal) switches:
  135.  
  136.             fat /c116 /h    ; Input decimal, output hex
  137.             fat /s12A /d    ; Input hex, output decimal
  138.             fat c:*.sys     ; No input, output decimal
  139.             fat c:*.sys /h  ; No input, output hex
  140.  
  141.         Output radix has no effect on the /Info display, which is mostly
  142.         decimal.
  143.  
  144.  
  145.         Revision history
  146.         ----------------
  147.         Version 1.05 - 6/13/88
  148.             Converted to Microsoft C
  149.             Fixed a problem with subdirectory names containing '.'
  150.  
  151.         Versions 1.03/1.04 - 1/21/87 and 7/15/87
  152.             Fixed a few problems with 16-bit FATs
  153.  
  154.         Version 1.02 - 9/13/86
  155.             First public release
  156.  
  157.  
  158.         Copyright/License/Warranty
  159.         --------------------------
  160.  
  161.         This document and the program file FAT.EXE ("the software") are
  162.         copyrighted by the author.  The copyright owner hereby licenses
  163.         you to: use the software; make as many copies of the program and
  164.         documentation as you wish; give such copies to anyone; and
  165.         distribute the software and documentation via electronic means.
  166.         There is no charge for any of the above.
  167.  
  168.         However, you are specifically prohibited from charging, or
  169.         requesting donations, for any such copies, however made; and
  170.         from distributing the software and/or documentation with
  171.         commercial products without prior permission.  An exception is
  172.         granted to not-for-profit user's groups, which are authorized to
  173.         charge a small fee (not to exceed $7) for materials, handling,
  174.         postage, and general overhead.  NO FOR-PROFIT ORGANIZATION IS
  175.         AUTHORIZED TO CHARGE ANY AMOUNT FOR DISTRIBUTION OF COPIES OF
  176.         THE SOFTWARE OR DOCUMENTATION, OR TO INCLUDE COPIES OF THE
  177.         SOFTWARE OR DOCUMENTATION WITH SALES OF THEIR OWN PRODUCTS.
  178.  
  179.         THIS INCLUDES A SPECIFIC PROHIBITION AGAINST FOR-PROFIT
  180.         ORGANIZATIONS DISTRIBUTING THE SOFTWARE, EITHER ALONE OR WITH
  181.         OTHER SOFTWARE, AND CHARGING A "HANDLING" OR "MATERIALS" FEE OR
  182.         ANY OTHER SUCH FEE FOR THE DISTRIBUTION.  NO FOR-PROFIT
  183.         ORGANIZATION IS AUTHORIZED TO INCLUDE THE SOFTWARE ON ANY MEDIA
  184.         FOR WHICH MONEY IS CHARGED.  PERIOD.
  185.  
  186.         There is no restriction on the use of this software in
  187.         commercial or institutional environments.
  188.  
  189.         No copy of the software may be distributed or given away without
  190.         this document; and this notice must not be removed.
  191.  
  192.         There is no warranty of any kind, and the copyright owner is not
  193.         liable for damages of any kind.  By using this free software,
  194.         you agree to this.
  195.  
  196.         The software and documentation are:
  197.  
  198.                        Copyright (C) 1986, 1987, 1988 by
  199.                             Christopher J. Dunford
  200.                             The Cove Software Group
  201.                                  P.O. Box 1072
  202.                            Columbia, Maryland 21044
  203.  
  204.                                 (301) 992-9371
  205.                         CompuServe 76703,2002 [IBMNET]
  206.